//
//  LineShape.swift
//  TetrisGame
//
//  Created by mac on 2020/11/23.
//


/// 长方形方块
class LineShape:Shape {
    
    override var blockRowColumnPositions: [Orientation: Array<(columnDiff: Int, rowDiff: Int)>] {
            return [
                Orientation.Zero:       [(0, 0), (0, 1), (0, 2), (0, 3)],
                Orientation.Ninety:     [(-1,0), (0, 0), (1, 0), (2, 0)],
                Orientation.OneEighty:  [(0, 0), (0, 1), (0, 2), (0, 3)],
                Orientation.TwoSeventy: [(-1,0), (0, 0), (1, 0), (2, 0)]
            ]
        }

    override var bottomBlocksForOrientations: [Orientation: Array<Block>] {
            return [
                Orientation.Zero:       [blocks[FourthBlockIdx]],
                Orientation.Ninety:     blocks,
                Orientation.OneEighty:  [blocks[FourthBlockIdx]],
                Orientation.TwoSeventy: blocks
            ]
        }
}
